package cn.imvc.app.controllers.goods;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.Page;

import cn.imvc.app.entities.GoodsSpec;
import cn.imvc.app.entities.InventoryFlow;
import cn.imvc.app.models.GoodsModel;
import cn.imvc.app.models.GoodsSpecModel;
import cn.imvc.app.models.InventoryFlowModel;
import cn.imvc.data.domain.ViewRequest;

public class InventoryFlowControllerImpl implements InventoryFlowController {

	@Autowired
	InventoryFlowModel inventoryFlowModel;
	
	public Page<Object[]> page;
	public int id;
	public int[] ids;
	public InventoryFlow inventoryFlow;
	public ViewRequest viewRequest;
	public String goodsName;
	
	
	public void setGoodsName(String goodsName) {
		this.goodsName = goodsName;
	}

	public InventoryFlowModel getInventoryFlowModel() {
		return inventoryFlowModel;
	}

	public void setInventoryFlowModel(InventoryFlowModel inventoryFlowModel) {
		this.inventoryFlowModel = inventoryFlowModel;
	}

	public Page<Object[]> getPage() {
		return page;
	}

	public void setPage(Page<Object[]> page) {
		this.page = page;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public int[] getIds() {
		return ids;
	}

	public void setIds(int[] ids) {
		this.ids = ids;
	}

	public InventoryFlow getInventoryFlow() {
		return inventoryFlow;
	}

	public void setInventoryFlow(InventoryFlow inventoryFlow) {
		this.inventoryFlow = inventoryFlow;
	}

	public ViewRequest getViewRequest() {
		return viewRequest;
	}

	public void setViewRequest(ViewRequest viewRequest) {
		this.viewRequest = viewRequest;
	}

	public String search() {
		// TODO Auto-generated method stub
		return null;
	}

	public String index() {
		page=inventoryFlowModel.findObjectPage(viewRequest);
		return "inventory-flow/index";
	}

	public String show() {
		// TODO Auto-generated method stub
		return null;
	}

	public String editNew() {
		// TODO Auto-generated method stub
		return null;
	}

	public String create() {
		// TODO Auto-generated method stub
		return null;
	}

	public String edit() {
		// TODO Auto-generated method stub
		return null;
	}

	public String update() {
		// TODO Auto-generated method stub
		return null;
	}

	public String destroy() {
		// TODO Auto-generated method stub
		return null;
	}

	public String destroyBatch() {
		// TODO Auto-generated method stub
		return null;
	}

}
